package com.cxy.datawarehouse.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@ApiModel("标准代码级别表")
@Table(name = "t_standard_code_level")
@DynamicInsert
@DynamicUpdate
public class StandardCodeLevel implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键 标准代码级别编号
     */
    @Id
    @ApiModelProperty("标准代码级别编号")
    @Column(name = "standard_code_level_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long standardCodeLevelId;

    /**
     * 标准代码级别名称
     */
    @ApiModelProperty("标准代码级别名称")
    @Column(name = "standard_code_level_name", nullable = false)
    private String standardCodeLevelName;

}
